<?php

namespace YouBaoLian\Application\Request;

use YouBaoLian\Application\Response\VehicleElecPolicyResponse;

class VehicleElecPolicyRequest extends Request
{
    /**
     * 报价配置ID
     * @var int $configId
     */
    private $configId = 0;

    /**
     * 核保ID
     * @var int $insuredId
     */
    private $insuredId = 0;

    /**
     * 保单类型
     * @var int $insuranceType
     */
    private $insuranceType = 0;

    /**
     * 保单号
     * @var string $policyNo
     */
    private $policyNo = '';


    protected $method = 'iebcVehicle.elecPolicyDown';

    protected $response = VehicleElecPolicyResponse::class;

    public function getBizContent(): array
    {
        return [
            'configId' => $this->configId,
            'insuredId' => $this->insuredId,
            'insuranceType' => $this->insuranceType,
            'policyNo' => $this->policyNo
        ];
    }

    /**
     * @param int $configId
     */
    public function setConfigId(int $configId): void
    {
        $this->configId = $configId;
    }

    /**
     * @param int $insuredId
     */
    public function setInsuredId(int $insuredId): void
    {
        $this->insuredId = $insuredId;
    }

    /**
     * @param int $insuranceType
     */
    public function setInsuranceType(int $insuranceType): void
    {
        $this->insuranceType = $insuranceType;
    }

    /**
     * @param string $policyNo
     */
    public function setPolicyNo(string $policyNo): void
    {
        $this->policyNo = $policyNo;
    }

}
